//存在连续三个奇数的数组
public class ConsecutiveOddInteger {
    public static void main(String[] args) {
        boolean flag = false;
        int[] arr = {1,2,3,5,7,8};
        //int[] arr = {1,2,3,4,5,6};
        for (int i = 1; i < arr.length-1 ; i++) {
            if ((arr[i-1] % 2 != 0) && (arr[i] % 2 != 0) && (arr[i+1] % 2 != 0)) {
                flag = true;
            }
        }
        System.out.println(flag);
        }
    }

